import axios from '../request'

// 登录请求
const loginApi = (data: Object) => axios({
  url: '/login',
  method: 'get',
  params: data
})

// 注册请求
const registerApi = (data: Object) => {
  return axios({
    url: '/login/register',
    method: 'post',
    data: data
  })
}


export {
  loginApi,
  registerApi,
}
